import request from "@/utils/request";
export function getMoviesDefaultCommission(params) {
  return request({
    url: "api/v1/getMoviesDefaultCommission",
    method: "GET",
    params,
  });
}
export function changeMoviesDefaultCommission(data) {
  return request({
    url: "api/v1/changeMoviesDefaultCommission",
    method: "POST",
    data,
  });
}
// 修改电影分佣
// export function updateDefaultCommisionRule(data) {
//   return request({
//     url: "api/v1/updateDefaultCommisionRule",
//     method: "POST",
//     data,
//   });
// }
// 获取电影分佣规则
// export function getDefaultCommisionRule() {
//   return request({
//     url: "api/v1/getDefaultCommisionRule",
//     method: "GET",
//   });
// }
export function getList(params) {
  return request({
    url: "/api/movies/getMoviesList",
    method: "GET",
    params,
  });
}
export function getOrderInfoFromThirdForAdmin(id) {
  return request({
    url: "/api/movies/getOrderInfoFromThirdForAdmin",
    method: "GET",
    params: { id },
  });
}
// export function refund(data) {
//   return request({
//     url: "/api/movies/refund",
//     method: "POST",
//     data,
//   });
// }
export function changeOrderStatus(data) {
  return request({
    url: "/api/movies/changeStatus",
    method: "post",
    data,
  });
}
export function reSubmitMoviesOrder(data) {
  return request({
    url: "/api/movies/reSubmit",
    method: "post",
    data,
  });
}
export function getStatics(params) {
  return request({
    url: "/api/movies/getStatics",
    method: "GET",
    params,
  });
}
